<?php

namespace app\index\validate;

use think\Validate;

class CertForm extends Validate
{

    protected $rule = [
        'id' => 'require|number',
        'cert_type' => 'require',
        'cert_name' => 'require',
        'num' => 'require',
    ];

    protected $message = [
        'id' => '网络错误',
        'cert_type' => '请选择证书分类',
        'cert_name' => '请选择证书名称',
        'num' => '请填写需求数量'
    ];

    protected $scene = [
        'add' => ['cert_type','cert_name','num'],
        'edit' => ['id','cert_type','cert_name','num'],
    ];


 


}















